import { http } from '@/utils/http'
import { CommentHistoryModel, CommentTagModel } from '@/models/commentModels'
import { Pagination } from '@/models/sys'

/** 查询标签选项 */
export const goodFeedbackTags = () => {
  return http.get<CommentTagModel[]>('/library-client/api/wxwork/good-feedback/tags', {})
}

/** 历史列表 */
export const goodFeedbackList = (params: { page: number; per_page: number }) => {
  return http.get<Pagination<CommentHistoryModel>>(
    '/library-client/api/wxwork/good-feedback/list',
    params,
  )
}

/** 历史列表 */
export const submit = (params: { customer_id: number; tags: string; images: string }) => {
  return http.post('/library-client/api/wxwork/good-feedback/submit', params)
}
